Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix call stack exceeded bug #1624

Merged
merged 3 commits into from
Oct 18, 2020
Merged

Fix call stack exceeded bug #1624

merged 3 commits into from
Oct 18, 2020

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Oct 18, 2020

Description

Whenever a component re-renders, the new component links to the old component's node ref and if this repeats long enough, the call stack will be exceeded.

Rather than link, the new component should reuse the existing node ref

Fixes #1449

Checklist

  • I have run cargo make pr-flow
  • I have reviewed my own code
  • I have added tests

@jstarry
Copy link
Member Author

jstarry commented Oct 18, 2020

Oops, will fix

@jstarry jstarry merged commit bdaa724 into yewstack:master Oct 18, 2020
@jstarry jstarry deleted the fix-call-stack branch October 18, 2020 16:00
jstarry added a commit that referenced this pull request Oct 18, 2020
* Fix call stack exceeded bug

* Fix borrow error

* Update scope node_ref copy when component updates
siku2 pushed a commit to siku2/yew that referenced this pull request Oct 20, 2020
* Fix call stack exceeded bug

* Fix borrow error

* Update scope node_ref copy when component updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught RangeError: Maximum call stack size exceeded
1 participant